import { request } from '@/utils/request'
export const getAdminListAPI = object => request('admin/auth/admin/index', 'post', { data: object })
export const getRoleOptionAPI = object => request('admin/auth/role/selectPage', 'post', { data: object })
export const getBrandOptionAPI = object => request('admin/brand/brand/selectPage', 'post', { data: object })
export const addUserAPI = object => request('admin/auth/admin/add', 'post', { data: object })
export const editUserAPI = object => request('admin/auth/admin/edit', 'post', { data: object })
export const delUserAPI = object => request('admin/auth/admin/del', 'post', { data: object })
export const getMenuListAPI = object => request('admin/auth/permission/index', 'post', { data: object })
export const addMenuAPI = object => request('admin/auth/permission/add', 'post', { data: object })
export const editMenuAPI = object => request('admin/auth/permission/edit', 'post', { data: object })
export const delMenuAPI = object => request('admin/auth/permission/del', 'post', { data: object })
export const getRoleListAPI = object => request('admin/auth/role/index', 'post', { data: object })
export const getTreeSelectAPI = () => request('admin/auth/permission/selectPage', 'get')
export const addRoleAPI = object => request('admin/auth/role/add', 'post', { data: object })
export const editRoleAPI = object => request('admin/auth/role/edit', 'post', { data: object })
export const delRoleAPI = object => request('admin/auth/role/del', 'post', { data: object })

export const getMenuAPI = object => request('admin/index/userNav', 'post', { data: object })
